public class MyUtilTest3 {
    public static void main(String[] args) {
        //测试正常情况
        if(MyUtil2.percentage2fivegrade(55) != "不及格")
            System.out.println("test failed 1!");
        else if(MyUtil2.percentage2fivegrade(65) != "及格")
            System.out.println("test failed 2!");
        else if(MyUtil2.percentage2fivegrade(75) != "中等")
            System.out.println("test failed 3!");
        else if(MyUtil2.percentage2fivegrade(85) != "良好")
            System.out.println("test failed 4!");
        else if(MyUtil2.percentage2fivegrade(95) != "优秀")
            System.out.println("test failed 5!");

            //测试出错情况
        else if(MyUtil2.percentage2fivegrade(-10) != "错误")
            System.out.println("test failed 6!");
        else if(MyUtil2.percentage2fivegrade(115) != "错误")
            System.out.println("test failed 7!");

            //测试边界情况
        else if(MyUtil2.percentage2fivegrade(0) != "不及格")
            System.out.println("test failed 8!");
        else if(MyUtil2.percentage2fivegrade(60) != "及格")
            System.out.println("test failed 9!");
        else if(MyUtil2.percentage2fivegrade(70) != "中等")
            System.out.println("test failed 10!");
        else if(MyUtil2.percentage2fivegrade(80) != "良好")
            System.out.println("test failed 11!");
        else if(MyUtil2.percentage2fivegrade(90) != "优秀")
            System.out.println("test failed 12!");
        else if(MyUtil2.percentage2fivegrade(100) != "优秀")
            System.out.println("test failed 13!");

        else
            System.out.println("test passed!");
    }
}